package photobox.order

class OrderCancel {

    String      reason   //取消原因,在前台定义几个预定义的值或用户填写的其它值
    String      description   //问题描述
    Integer     dealResult          //处理结果
    String      remark          //备注

    static final DEAL_RESULT_NEW = 0  //新申请, 等待处理
    static final DEAL_RESULT_RETURNED = 10 // 已退货
    static final DEAL_RESULT_CANCEL = 20  //取消,不退货

    static mapping = {
        table 'odr_order_cancel'
    }

    static constraints = {
        reason  size: 0..30
        description  size: 0..200
        dealResult  inList: [DEAL_RESULT_NEW,DEAL_RESULT_RETURNED, DEAL_RESULT_CANCEL]
        remark  size: 0..200
    }
}
